﻿using Alipay.EasySDK.Kernel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KxPay.AliPay
{
   public class DemoConfig:Config
    {
        public DemoConfig()
        {
            Protocol = "https";
            GatewayHost = "openapi.alipay.com/";
            SignType = "RSA2";
            
            AppId = "2021001173692408";

            // 为避免私钥随源码泄露，推荐从文件中读取私钥字符串而不是写入源码中
            MerchantPrivateKey = "MIIEogIBAAKCAQEAy67jMg93FVWi8L4+dJuSITwWO8pTZhREDbfs1KQPeXZAcNf9BD6P4XfeH5HqxMhwsjUzLuW+aFEVItUu8LqG/zpChex2xiY6lAbt22Y+NqY2YRDZrFKCD5gSltL8pz5d0TTQgW0ec+/czjMwF/Ye/s2SCCpGJtY9pV75tUVqMhtSKCPUdSLbQIC7z8qAw6SarJpO5ibnjkCZaeB2SG4L2UvfbSTFo7lYMRej0VJjvoJ8VR/YJaUJ1vRxVyoGh0rsaqD+GroC+B3h1iv/cXZ7CJY1za0DEeI1VfOb7P4JP6NsSsPz5bA28pxOaEp9Iqwu5ADyFKEcIeS9qiXf16tLWQIDAQABAoIBAHy+AgThtdPKG72HNebidE+IZjF+Cy+kT717HD9qrtN7maHClgGocyPp7o61JewYufRaYpthNwjaR7CKkXH7OrxLKPyuQlu+g/euerP43TdI+lreIAHKkj8Mqq3WT8f5iSmcR+pMMu9cQoXCkbzLDlaM/dekVExqv1xtW08qUQyX2GbVczR4paZSKNjatix/AKpyoz9JaeTS+wB0DmIkO2x2XLN68Mz8AuT5LuFEh19VI63H8i0uIhMak4z5DwlUyHBmEZzC9iv/FCyG1CO6borLQRO/ufdGaM4/yBYfKfPKFWpon8VtdxzL6miu7WHy9X1vqEa/VBC6kpy3bkf8/oECgYEA9oXdLa+Y/i9l/4s+hsAkctCW9Q6dPmw62xJLaDsZKokoQkco1L+o0aFUMY/HC6oOzrX486rEVysM9dJH6vlCZmRjfwP99Wd3CpRvGmWh8V0VHE3evUWK5kBL+mlfXKuoS5wyCVovMEMPgIbG8bPpB7zYIYH1Ck4AmabY58gxVIkCgYEA04NrXsgq0mcaMTRrU6Ab04ftjWdHKtGDBJnh/uCPMsh9aS4f/Q+VeqJwLjEeMm42+iw9Nb5GEhmVz/tCBbNlzjYPdXca1tP3FVTdrjjwdAcE9L3uI8VPV5N6s3ghlDN3bICVTuelz9acEnylxpqFSdW44uazUqLBlOeGBYdILFECgYAihCurseJh9JD7bquaglyYFsyMEzfA/bZf5ffY6C1l3z5byUrWPt+MOmJnbhIYd/8Kwj/RHh/PdJ+j64VWSQAbBgNITW7JZWsteAr2TzSVbsr944lERvBjvKzmqspHV2GA9KWs2Yux3jHVdQl13hLKmo5IYsHEZ5d96/aCvWzqwQKBgHNyaNl8EftzsRUoUmh7nJSRvbSPqYWSg5uwTm0qrp5+Vg1h0q3yopkkLmzX/G50P+e+284IxAA/HMk/kCLCb4/la/ymfOzDFzr6bmEYzQ3Xgvn+7QtzN8JKSg/JQzK8ALQlXtmJkLRnpBpnFKjZUGUjlV2rpDc3hMe8syczVs5xAoGAUHFSaM3et0aIijvL49ma/nVLrTUnRKDYnUz/m1hAS58fDx9hC6q/meVbG993Zkak909GxMXsEOKsyMPOEhcUyi9MZ0t+JKBEha5ZDaNHEcF2RSl5kgFy9g/TLM9yXyDmgd1yUVJZQ6jzQc9EBSw/oCCQG8WDROYMhFcSiCHgg/4=";
           
            //MerchantCertPath = "<-- 请填写您的应用公钥证书文件路径，例如：/foo/appCertPublicKey_2019051064521003.crt -->";
            //AlipayCertPath = "<-- 请填写您的支付宝公钥证书文件路径，例如：/foo/alipayCertPublicKey_RSA2.crt -->";
            //AlipayRootCertPath = "<-- 请填写您的支付宝根证书文件路径，例如：/foo/alipayRootCert.crt -->";

            // 如果采用非证书模式，则无需赋值上面的三个证书路径，改为赋值如下的支付宝公钥字符串即可
             AlipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy67jMg93FVWi8L4+dJuSITwWO8pTZhREDbfs1KQPeXZAcNf9BD6P4XfeH5HqxMhwsjUzLuW+aFEVItUu8LqG/zpChex2xiY6lAbt22Y+NqY2YRDZrFKCD5gSltL8pz5d0TTQgW0ec+/czjMwF/Ye/s2SCCpGJtY9pV75tUVqMhtSKCPUdSLbQIC7z8qAw6SarJpO5ibnjkCZaeB2SG4L2UvfbSTFo7lYMRej0VJjvoJ8VR/YJaUJ1vRxVyoGh0rsaqD+GroC+B3h1iv/cXZ7CJY1za0DEeI1VfOb7P4JP6NsSsPz5bA28pxOaEp9Iqwu5ADyFKEcIeS9qiXf16tLWQIDAQAB";
         
            //可设置异步通知接收服务地址（可选）
            //NotifyUrl = "";
           
            //可设置AES密钥，调用AES加解密相关接口时需要（可选）
            //EncryptKey = "smyWwDMIrUE0QTkn5js8pg==";
            //EncryptKey = "ytuNwZw9AwCAnUkruZ5LKw==";
        }
    }
}
